<?php

// Init owncloud

require_once(OC_App::getAppPath('resumes') . "/lib/tag.php");

$LoginStats = PUtil::checkUserLogin(true);
if ($LoginStats !== true) {
   echo $LoginStats;
   exit();
}

OCP\JSON::callCheck();

$searchTag = JRequest::getString('q', null);

$model = new PResumesModelTag();
$resumeHotTags = $model->getResumeHotTags();

OCP\JSON::success(array('data' => $resumeHotTags));
